package com.zhanghw.shop.data.vo;

import cn.sourcespro.commons.data.vo.Vo;
import com.zhanghw.shop.data.entity.Area;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
public class AreaVo extends Vo {

    private String name;
    private Integer code2;

    public AreaVo(Area area) {
        this.name = area.getName();
        this.code2 = area.getCode();
    }
}
